<?php if ($sf_flash->has('status')): ?>
  <?php if( $sf_flash->get('status') == MyConstants::STATUS_APPROVED ):?>
  	<?php echo __('Mails created Successful'); ?>
  <?php endif; ?>
<?php endif; ?>
<?php echo form_tag('mailtask/bulktasks'
                    , array('method' => 'POST'))?>
<?php echo label_for('subject'
                    , __('Subject')
                    , array('class' => '')) ?>:
<?php echo input_tag('subject'
                    , ''
                    , array('class' => ''));?>
<?php echo label_for('body'
                    , __('Mail text for users')
                    , array('class' => '')) ?>:
<?php echo textarea_tag('body', '', 'size=20x4');?>
<?php echo submit_tag(__('submit')
                        , array('class' => ''))?>
<?php echo label_for('users'
                    , __('Send for users by role')
                    , array('class' => '')) ?>:
<?php echo select_tag('users'
                        , options_for_select(MyConstants::getRolesList()
                                            , ''
                                            , array('include_custom' => __('Choose')))
                        , array('class' => ''
                                , 'multiple' => true))?>
<?php echo label_for('priority'
                    , __('Set priority')
                    , array('class' => '')) ?>:
<?php echo select_tag('priority'
                        , options_for_select(MailTask::getPriorityList()
                                            , ''
                                            , array('include_custom' => __('Choose')))
                        , array('class' => ''))?>
</form>